Let, x2 + 9 = t
Differentiating both side with respect to x
⇒ dt = 2x dx
At x = 0, t = 9
At x = 3, t = 18
So, the complete solution is y = A + B